@import '../../../../../theme/variables';

.form-field {
  mat-spinner {
    height: 12px !important;
    width: 12px !important;
    opacity: 0.5;
    margin: 0 !important;
    display: inline-block;
    position: relative;
    top: 2px;
    margin-left: 8px;

    ::ng-deep svg {
      height: 12px !important;
      width: 12px !important;
    }
  }
}

.-destination {
  &:not(:last-child) {
    margin-bottom: 5px;
  }

  .-icons {
    text-align: right;
    padding-top: 5px;

    img {
      width: 32px;
      cursor: pointer;
    }
  }
}

mat-checkbox {
  font-size: 12px;
}

mat-select {
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.05);
  border-radius: 6px;

  ::ng-deep .mat-select-trigger {
    padding: 10px 30px 10px 10px;
    display: block;
    font-size: 11px;
    height: 100%;
    line-height: 20px;
  }

  ::ng-deep .mat-select-arrow {
    border: none;
  }

  ::ng-deep .mat-select-placeholder {
    color: unset !important;
    transition: unset !important;
  }
}

mat-option ::ng-deep .mat-pseudo-checkbox-checked {
  background: $gradient-blue-dark;
}

.-autohours {
  margin: 40px 0 20px;

  .-check ::ng-deep {
    .mat-checkbox-checkmark-path {
      stroke: $gradient-blue-dark !important;
    }

    .mat-checkbox-background, .mat-checkbox-frame {
      width: 20px;
      height: 20px;
      background: rgba(30, 34, 39, 0.05);
      border-radius: 6px;
      border-color: transparent;
    }

    .mat-checkbox-label {
      line-height: 20px;
      font-size: 13px;
      color: $grey-dark;
      flex: 1;
    }

    .mat-checkbox-layout {
      display: flex;
    }
  }

  .-options-wrapper {
    margin-top: 20px;

    mat-slider {
      width: 100%;
      padding: 0;
      height: 40px;
      border: 2px solid rgba(0, 0, 0, 0.05);
      border-radius: 6px;
      background: white;

      ::ng-deep {
        .mat-slider-thumb, .mat-slider-thumb-label {
          background-color: $gradient-blue-dark !important;
          transform: scale(1) !important;
          border-width: 0 !important;
        }

        .mat-slider-thumb {
          right: -6px;
          width: 12px;
          height: 32px;
          border-radius: 3px;
        }

        .mat-slider-track-fill, .mat-slider-track-background {
          background-color: white !important;
        }
      }
    }
  }
}

.-options {
  padding-left: 5px;
  color: $gradient-blue-dark;
  cursor: pointer;
  font-size: 13px;

  mat-icon {
    color: $gradient-blue-dark;
    padding: 0;
    display: inline;
    vertical-align: middle;
    font-size: 13px;
  }
}

.-buttons {
  text-align: center;
}

.-hidden {
  display: none;
}

.-space-between {
  display: flex;
  justify-content: space-between;
}

label mat-icon {
  display: inline;
  font-size: 14px;
  color: lighten($grey, 40%);
  vertical-align: text-bottom;
  padding-left: 5px;
}

.-available-msg {
  background-color: $grey-lightest;
  border: 1px dotted $grey-light;
  border-radius: 6px;
  padding: 10px;
  font-size: 11px;
  text-align: center;

  span {
    opacity: 0.7;
  }

  .value {
    opacity: 1 !important;
    font-weight: bold;
    font-size: 13px;
  }
}

.destinations-label {
  display: inline-block;
}
